package directoryPath;

import java.io.File;
import java.io.IOException;

import org.apache.lucene.store.Directory;
import org.apache.lucene.store.FSDirectory;


public class CustomizedDirectory {

    private File file;

    public CustomizedDirectory() { }

    public void setDir(File f){
	this.file = f;
    }
	
    public File getFile(){
	return file;
    }
	
    public File[] getListFiles(){
	return file.listFiles();
    }
	
    public  Directory getDirectory() throws IOException {
        return FSDirectory.open(file);
    }

}
